package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentHomework = "online_student_homework"

func init() {
	var r = &OnlineStudentHomework{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentHomework struct {
	HomeworkId    int    `form:"homeworkId" column:"homework_id" primary:"true" modify:"false" json:"homeworkId"`
	StudentId     int    `modify:"true" json:"studentId" form:"studentId" column:"student_id"`
	CourseId      int    `modify:"true" json:"courseId" form:"courseId" column:"course_id"`
	ClassId       int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	TermId        int    `form:"termId" column:"term_id" modify:"true" json:"termId"`
	TeacherId     int    `form:"teacherId" column:"teacher_id" modify:"true" json:"teacherId"`
	Status        int    `json:"status" form:"status" column:"status" modify:"true"`
	CommittedTime string `json:"committedTime" form:"committedTime" column:"committed_time" modify:"true"`
	CorrectedTime string `json:"correctedTime" form:"correctedTime" column:"corrected_time" modify:"true"`
	CreateTime    string `modify:"false" json:"createTime" form:"createTime" column:"create_time"`
	UpdateTime    string `column:"update_time" modify:"false" json:"updateTime" form:"updateTime"`
}

func (r *OnlineStudentHomework) Name() string {
	return RecordNameOnlineStudentHomework
}
